package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.销售财务账目单号Model;
import com.iris.live.services.data.models.销货单位表Model;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface 销货单位表Repository extends JpaRepository<销货单位表Model,Integer>,JpaSpecificationExecutor<销货单位表Model>{

    @Query("select a from 销货单位表Model a where a.许可 = ?1")
    销货单位表Model selectByPermit(String permit);
}
